import { formatYear, formatDate, formatBirthday } from "@/utils/format";

export default function (identity = 0) {
    const normalColumns = [
        {
            title: "员工姓名",
            dataIndex: "staffInfo",
            key: "staffName",
        },
        {
            title: "奖惩类型",
            dataIndex: "rewardPunishmentType",
            key: "rewardPunishmentType",
        },
        
        {
            title: "奖惩描述",
            dataIndex: "recordDescription",
            key: "recordDescription",
        },
        {
            title: "奖惩原因",
            dataIndex: "reason",
            key: "reason",
        },
        {
            title: "奖惩时间",
            dataIndex: "date",
            key: "date",
        },
    ];
    const authColums = [];
    const colums =
        identity === 1 ? [...normalColumns, ...authColums] : normalColumns;
    return colums;
}
